package com.go.where.family.service;

import java.util.List;
import java.util.Map;

import com.go.where.family.pojo.GroupInfo;

public interface GroupService {

	/**
	 * 生成团购信息
	 * 
	 * @param videoInfo
	 * @return
	 */
	public GroupInfo save(GroupInfo groupInfo);
	
	public int update(GroupInfo groupInfo);

	/**
	 * 通过客户编号查询团购订单号
	 * 
	 * @param customerId
	 * @return
	 */
	public List<String> queryByCustomerId(String customerId);

	/**
	 * 条件查询
	 * 
	 * @param map
	 * @return
	 */
	public List<GroupInfo> queryByParameters(Map<String, Object> map);

	/**
	 * 获取下一个key
	 * 
	 * @return
	 */
	public String getNextKey();

	/**
	 * 通过团购id查询第一个团购的信息
	 * 
	 * @param groupInfo
	 * @return
	 */
	public GroupInfo queryByGroupId(GroupInfo groupInfo);
	
	public List<GroupInfo> queryByActivityId(GroupInfo groupInfo);
	
	public Integer queryCount(Map<String, Object> map);
	
	public List<String> queryCustomerIds(GroupInfo groupInfo);
	
	public Integer queryGroupTotalPerson(Map<String, Object> map);

}
